// type 和 interface 类似；区别：type 可以直接定义类型别名 type a = string; 但interfance不行
// 接口可以进行多重继承和多重实现
interface IPerson {
    name:string
}

interface ITeacher{
    lang:string
}

interface IXue extends IPerson, ITeacher {
    age:number
};

class Abc implements IPerson,ITeacher {
   private a:string
}


function getName(person) {
  console.log(person.name)
  return person.name
}
var personD = {
  name: "dell",
}
getName(personD)
